package com.itheima.mapper;

import com.itheima.pojo.Setmeal;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface SetmealMobileMapper extends SetmealMapper{
    /**
     * 查询所有套餐
     * @return
     */
    @Select("select * from setmeal")
    List<Setmeal> selectAll();

    /**
     * 根据套餐id查询套餐信息
     * @param id
     * @return
     */
    @Select("select * from setmeal where id = #{id}")
    Setmeal findById(Integer id);

    /**
     * 根据套餐id查询套餐详情
     * @param id
     * @return
     */
    Setmeal findDetailById(Integer id);
}
